//
//  baseLabel.m
//  B2CStore
//
//  Created by 陶磊 on 2020/1/9.
//  Copyright © 2020 QHT. All rights reserved.
//

#import "baseLabel.h"

@implementation baseLabel

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setup];
    }
    return self;
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if (self) {
        [self setup];
    }
    return self;
}

- (void)setup
{
    self.layer.cornerRadius = 5;
    
}
-(CGSize)intrinsicContentSize{
    CGSize originalSize = [super intrinsicContentSize];
    CGSize size = CGSizeMake(originalSize.width+20, originalSize.height+8);
    return size;
}

@end
